package com.health.manage.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @Description: 用户模型
 * @author: user
 */
@Data
@TableName("user")
public class User implements Serializable{

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.AUTO) //主键注解
	private Long id;

	@ApiModelProperty(value = "就诊卡号")
	@TableField("account")
	private String account;

	@ApiModelProperty(value = "姓名")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "密码")
	@TableField("password")
	private String password;

	@ApiModelProperty(value = "性别")
	@TableField("sex")
	private Long sex;

	@ApiModelProperty(value = "手机号")
	@TableField("phone")
	private String phone;

	@ApiModelProperty(value = "身份证")
	@TableField("card")
	private String card;

	@ApiModelProperty(value = "家庭住址")
	@TableField("address")
	private String address;

	@ApiModelProperty(value = "病史")
	@TableField("medical")
	private String medical;

	@ApiModelProperty(value = "过敏史")
	@TableField("allergy")
	private String allergy;

	@ApiModelProperty(value = "药物使用史")
	@TableField("drug")
	private String drug;

	@ApiModelProperty(value = "角色")
	@TableField("role")
	private String role;

}
